package day03;
//赋值运算符
public class OperDemo4 {
    public static void main(String[] args) {
        int a = 10;
        System.out.println(a);
        System.out.println(a+=10);
        System.out.println(a-=10);
        System.out.println(a*=10);
        System.out.println(a/=10);
        System.out.println(a%=10);

        short s = 4;
        //s=s+10;//编译错误，需要强转，改为，s=(short)(s+10);
        s+=10;//相当于s=(short)(s+10);



    }
}
